package com.dp.springsourcecodeanalysis.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.dp.springsourcecodeanalysis.web.dto.UserResponseDTO;

/**
 * Created by IntelliJ IDEA
 *
 * @author shala/沙拉
 * @date 2022/1/20 14:22
 */
@RestController
@RequestMapping("/my_message")
public class MyMessageController {

    @GetMapping("/response")
    public UserResponseDTO responseDTO() {
        return new UserResponseDTO("shala", "沙拉", 20);
    }
}
